package com.knight.admin.model.base;

import com.jfinal.plugin.activerecord.IBean;
import com.jfinal.plugin.activerecord.Model;

public abstract class BaseMenu<M extends BaseMenu<M>> extends Model<M> implements IBean {

	public M setId(String id) {
		set("id", id);
		return (M) this;
	}

	public String getId() {
		return get("id");
	}

	public M setName(String name) {
		set("name", name);
		return (M) this;
	}

	public String getName() {
		return get("name");
	}

	public M setUrl(String url) {
		set("url", url);
		return (M) this;
	}

	public String getUrl() {
		return get("url");
	}

	public M setType(String type) {
		set("type", type);
		return (M) this;
	}

	public String getType() {
		return get("type");
	}

	public M setParentId(String parentId) {
		set("parentId", parentId);
		return (M) this;
	}

	public String getParentId() {
		return get("parentId");
	}

	public M setSortValue(Integer sortValue) {
		set("sortValue", sortValue);
		return (M) this;
	}

	public Integer getSortValue() {
		return get("sortValue");
	}

}
